package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *@ClassName RoleResource
 *@Author jiangjiajia
 *@JDK-Version 1.8
 *@Date 2021/7/10 3:35 pm
 *@Version 1.0
 *@Description 必须描述类的业务用途
 
 **/

/**
 * 角色资源表
 */
@ApiModel(value = "com-qf-entity-RoleResource")
@Data
@TableName(value = "role_resource")
public class RoleResource {
    /**
     * 主键
     */
    @TableId(value = "role_resource_id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Long roleResourceId;

    /**
     * 角色id
     */
    @TableField(value = "role_id")
    @ApiModelProperty(value = "角色id")
    private Long roleId;

    /**
     * 资源id
     */
    @TableField(value = "resource_id")
    @ApiModelProperty(value = "资源id")
    private Long resourceId;

    public static final String COL_ROLE_RESOURCE_ID = "role_resource_id";

    public static final String COL_ROLE_ID = "role_id";

    public static final String COL_RESOURCE_ID = "resource_id";
}